Optimal. Leaf size=78 \[ -\frac{b^2 \cos (a) \text{CosIntegral}\left (b x^n\right )}{2 n}+\frac{b^2 \sin (a) \text{Si}\left (b x^n\right )}{2 n}+\frac{b x^{-n} \sin \left (a+b x^n\right )}{2 n}-\frac{x^{-2 n} \cos \left (a+b x^n\right )}{2 n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.111042, antiderivative size = 78, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.312, Rules used = {3380, 3297, 3303, 3299, 3302} \[ -\frac{b^2 \cos (a) \text{CosIntegral}\left (b x^n\right )}{2 n}+\frac{b^2 \sin (a) \text{Si}\left (b x^n\right )}{2 n}+\frac{b x^{-n} \sin \left (a+b x^n\right )}{2 n}-\frac{x^{-2 n} \cos \left (a+b x^n\right )}{2 n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3380
Rule 3297
Rule 3303
Rule 3299
Rule 3302
Rubi steps
\begin{align*} \int x^{-1-2 n} \cos \left (a+b x^n\right ) \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\cos (a+b x)}{x^3} \, dx,x,x^n\right )}{n}\\ &=-\frac{x^{-2 n} \cos \left (a+b x^n\right )}{2 n}-\frac{b \operatorname{Subst}\left (\int \frac{\sin (a+b x)}{x^2} \, dx,x,x^n\right )}{2 n}\\ &=-\frac{x^{-2 n} \cos \left (a+b x^n\right )}{2 n}+\frac{b x^{-n} \sin \left (a+b x^n\right )}{2 n}-\frac{b^2 \operatorname{Subst}\left (\int \frac{\cos (a+b x)}{x} \, dx,x,x^n\right )}{2 n}\\ &=-\frac{x^{-2 n} \cos \left (a+b x^n\right )}{2 n}+\frac{b x^{-n} \sin \left (a+b x^n\right )}{2 n}-\frac{\left (b^2 \cos (a)\right ) \operatorname{Subst}\left (\int \frac{\cos (b x)}{x} \, dx,x,x^n\right )}{2 n}+\frac{\left (b^2 \sin (a)\right ) \operatorname{Subst}\left (\int \frac{\sin (b x)}{x} \, dx,x,x^n\right )}{2 n}\\ &=-\frac{x^{-2 n} \cos \left (a+b x^n\right )}{2 n}-\frac{b^2 \cos (a) \text{Ci}\left (b x^n\right )}{2 n}+\frac{b x^{-n} \sin \left (a+b x^n\right )}{2 n}+\frac{b^2 \sin (a) \text{Si}\left (b x^n\right )}{2 n}\\ \end{align*}
Mathematica [A] time = 0.129637, size = 70, normalized size = 0.9 \[ -\frac{x^{-2 n} \left (b^2 \cos (a) x^{2 n} \text{CosIntegral}\left (b x^n\right )-b^2 \sin (a) x^{2 n} \text{Si}\left (b x^n\right )-b x^n \sin \left (a+b x^n\right )+\cos \left (a+b x^n\right )\right )}{2 n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.037, size = 65, normalized size = 0.8 \begin{align*}{\frac{{b}^{2}}{n} \left ( -{\frac{\cos \left ( a+b{x}^{n} \right ) }{2\, \left ({x}^{n} \right ) ^{2}{b}^{2}}}+{\frac{\sin \left ( a+b{x}^{n} \right ) }{2\,b{x}^{n}}}+{\frac{{\it Si} \left ( b{x}^{n} \right ) \sin \left ( a \right ) }{2}}-{\frac{{\it Ci} \left ( b{x}^{n} \right ) \cos \left ( a \right ) }{2}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{-2 \, n - 1} \cos \left (b x^{n} + a\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.6691, size = 254, normalized size = 3.26 \begin{align*} -\frac{b^{2} x^{2 \, n} \cos \left (a\right ) \operatorname{Ci}\left (b x^{n}\right ) + b^{2} x^{2 \, n} \cos \left (a\right ) \operatorname{Ci}\left (-b x^{n}\right ) - 2 \, b^{2} x^{2 \, n} \sin \left (a\right ) \operatorname{Si}\left (b x^{n}\right ) - 2 \, b x^{n} \sin \left (b x^{n} + a\right ) + 2 \, \cos \left (b x^{n} + a\right )}{4 \, n x^{2 \, n}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{-2 \, n - 1} \cos \left (b x^{n} + a\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]